package cn.stylefeng.guns.modular.transport.model.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class MapTerminalResult {

    private String terminalName;

    private String traceName;

    @JsonProperty("errcode")
    private int errcode;

    @JsonProperty("errmsg")
    private String errmsg;

    @JsonProperty("errdetail")
    private String errdetail;

    @JsonProperty("data")
    private TrackData data;

    @Data
    public static class TrackData {
        @JsonProperty("location")
        private String location;

        @JsonProperty("locatetime")
        private long locatetime;

        @JsonProperty("speed")
        private double speed;

        @JsonProperty("direction")
        private double direction;

        @JsonProperty("height")
        private double height;

        @JsonProperty("accuracy")
        private double accuracy;
    }
}
